<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./uplayer.min.js"></script>
    <!-- 播放区域，通过调整样式设置合适的大小和位置 -->
<div id="video_div" style="width: 640px;height: 360px">
    <script>
          /**
        * 播放函数说明:
        * @param {string} url   视频地址，支持hls,mp4,rtmp,http-flv协议. 
        * @param {string} divId 视频播放窗口的div的id 
        * @param {string} format 视频流格式，可以是： flv, hls, rtmp, mp4等 
        */
        // http://satellitepull.cnr.cn/live/wxhqzx01/playlist.m3u8
        // https://live.fanmingming.com/tv/m3u/global.m3u
          play("http://[2409:8087:7001:20:2::3]:80/dbiptv.sn.chinamobile.com/PLTV/88888893/224/3221226975/index.m3u8","video_div","hls");
        // play("http://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-720p.flv","video_div","flv");
          /**
          * 停止播放
          * video_div播放时传入的容器id
          * stop(video_div);
          *
          * //停止所有，页面有多个播放器时使用
          * stopAll()
          */
    </script>
      
</body>
</html>